<?php
// 送货地址管理
class Shipping_addressAction extends CommonAction {
    function _filter(&$map) {
         $key = trim($_REQUEST['keywords']);
         if(!empty($key)) {
             $map['name'] = array('like',"%".$key."%");
             $map['email'] = array('like',"%".$key."%");
             //$map['email1'] = array('like',"%".$key."%");
             //$map['email2'] = array('like',"%".$key."%");
             $map['mobile'] = array('like',"%".$key."%");
             //$map['mobile1'] = array('like',"%".$key."%");
             //$map['mobile2'] = array('like',"%".$key."%");
             $map['phone'] = array('like',"%".$key."%");
             //$map['company'] = array('like',"%".$key."%");
             $map['remark'] = array('like',"%".$key."%");
             $map['address'] = array('like',"%".$key."%");
             $map['_logic'] = "or";
             //$map['profile'] =$key; //保证分页跳转正常,注意不要查询profile
         }
    }


}
?>
